<!--  -->
<template>
  <div class="warp-box">
    <div class="head-box">
      <el-form :model="formObj" label-width="80" :inline="false">
        <el-form-item label="设备名称">
          <el-input v-model="formObj.name" style="width: 200px" placeholder="请输入款式" />
        </el-form-item>
        <el-form-item label="设备型号">
          <el-input v-model="formObj.product" style="width: 200px" placeholder="请输入颜色" />
        </el-form-item>
        <el-form-item>
          <el-button type="primary" @click="onSubmit">查询</el-button>
        </el-form-item>
      </el-form>
    </div>
    <div class="main-box">
      <div class="tabel-box">
        <div class="item-box" v-for="(i, t) in 10" :key="t">
          <img src="../../assets/test_img//knd-01.png" alt="" />
          <div class="tips">
            <div>设备名称：KED-2000T</div>
            <div>车间编号 ： 001</div>
            <div>运行状态 ： 运行中。。。</div>
            <div>运行时间 ：XXXX</div>
          </div>
        </div>
      </div>
      <div class="foot-box">
        <el-pagination
          v-model:current-page="currentPage4"
          v-model:page-size="pageSize4"
          :page-sizes="[50, 100, 150, 200]"
          size="default"
          :disabled="false"
          :background="false"
          layout="total, sizes, prev, pager, next, jumper"
          :total="2"
        />
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue"
export default defineComponent({
  name: "EquipmentOrgPage",
  components: {},
  setup() {
    const formObj = ref({
      name: "",
      product: ""
    })
    const mdShow = ref(false)
    const currentPage4 = ref(10)
    const pageSize4 = ref(50)
    const tableData: any = []
    const onSubmit = () => {}
    return {
      mdShow,
      formObj,
      currentPage4,
      pageSize4,
      tableData,
      onSubmit
    }
  }
})
</script>
<style scoped lang="scss">
.warp-box {
  padding: 20px;
  height: 100%;
  padding: 20px;
  .head-box {
    height: 100px;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    .el-form {
      display: flex;
      flex-wrap: wrap;
      overflow: auto;
      // height: 60px;
    }
  }
  .main-box {
    height: calc(100% - 120px);
    width: 100%;
    background-color: #fff;

    border-radius: 8px;
    padding: 20px;
    .tabel-box {
      display: flex;
      flex-wrap: wrap;
      overflow: auto;
      height: calc(100% - 50px);
      &::-webkit-scrollbar {
        width: 0; /* 鼠标移入时隐藏滚动条 */
      }
      .item-box {
        width: 300px;
        height: 260px;
        cursor: pointer;
        margin: 10px;
        border-radius: 0 0 8px 8px;
        z-index: 2;
        box-shadow: 0 1px 12px rgba(0, 0, 0, 0.1);
        img {
          width: 100%;
          height: 150px;
          border-radius: 8px 8px 0 0;
        }
        .tips {
          line-height: 25px;
          padding: 0 10px;
          font-size: 14px;
          // background-color: #ddd;
          margin-top: -4px;
        }
      }
    }
    // .tabel-box::-webkit-scrollbar {
    //   width: 10px; /* 设置滚动条宽度 */
    // }
    .foot-box {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px;
    }
  }
}
</style>
